// 请款单位
import request from '@/utils/request'
// 获取数据字典
export function listAll(params: any) {
    return request.post({ url: '/setting.dict.DictType/listAll', params })
}
// 列表
export function adminListss(params: any) {
    return request.get({ url: '/finance.RequestingUnit/lists', params })
}
// 删除
export function adminDelete(params: any) {
    return request.post({ url: '/finance.RequestingUnit/delete', params })
}
// 编辑
export function adminedit(params: any) {
    return request.post({ url: '/finance.RequestingUnit/edit', params })
}
// 新增
export function adminAdd(params: any) {
    return request.post({ url: '/finance.RequestingUnit/add', params })
}
// 新增
export function requestingUnitDetail(params: any) {
    return request.post({ url: '/finance.RequestingUnit/detail', params })
}

// 请款单位查项目
export function projectUnitList(params: any) {
    return request.post({ url: '/finance.project/unitList', params })
}

//流程设置
// 获取管理员列表
export function getPerson(params: any) {
    return request.post({ url: '/auth.admin/all', params })
}
// 字典数据列表
export function dictDataLists(params: any) {
    return request.get(
        { url: '/setting.dict.dict_data/lists', params },
        {
            ignoreCancelToken: true
        }
    )
}

// 全部
export function adminAll(params: any) {
    return request.get({ url: '/finance.wfFlow/all', params })
}
// 添加
export function flowAdd(params: any) {
    return request.post({ url: '/finance.wfFlow/add', params })
}

// 查看
export function adminDetail(params: any) {
    return request.post({ url: '/finance.wfFlow/detail', params })
}
// 编辑流程
export function flowEdit(params: any) {
    return request.post({ url: '/finance.wfFlow/edit', params })
}
// 新增工程款支付申请单
export function addFinanceOrder(params: any) {
    return request.post({ url: '/finance.order/add', params })
}
// 获取项目
export function getProject(params: any) {
    return request.post({ url: '/finance.order/getOrderProject', params })
}
// 删除附件
export function delFile(params: any) {
    return request.post({ url: '/finance.order/deleteAttachment', params })
}
// 打包下载附件
export function zipFile(params: any) {
    return request.post({ url: '/finance.order/createZipAttachment', params })
}
//获取用户字段显示
export function getCommonFieldDisplay(params: any) {
    return request.post({ url: '/order.inventory/getCommonFieldDisplay', params })
}
// 获取详情
export function getDetail(params: any) {
    return request.post({ url: '/finance.order/detail', params })
}
// 获取列表
export function getFinancialLists(params: any) {
    return request.get({ url: '/finance.order/lists', params })
}
//列表
export function getLists(params: any) {
    return request.get({ url: '/auth.wfFlow/lists', params })
}
// 请款单 确认审核
export function confirm(params: any) {
    return request.get({ url: '/finance.order/review', params })
}
// 请款单 保存编辑
export function saveEdit(params: any) {
    return request.post({ url: '/finance.order/edit', params })
}
// 请款单 驳回
export function reject(params: any) {
    return request.post({ url: '/finance.order/reject', params })
}
// 请款单 报废
export function closeOrder(params: any) {
    return request.post({ url: '/finance.order/close', params })
}
// 新建付款单
export function addPaymentOrder(params: any) {
    return request.post({ url: '/finance.PaymentOrder/add', params })
}
// 编辑付款单
export function editPaymentOrder(params: any) {
    return request.post({ url: '/finance.PaymentOrder/edit', params })
}
// 再次付款（继续创建付款单）
export function rePay(params: any) {
    return request.post({ url: '/finance.order/goPaymentOrder', params })
}
